From: Alex Kiernan Date: Wed, 4 Jul 2018 19:19:41 +0000 (+0000) Subject: build: Use ostree_prepare_root_CPPFLAGS for ostree-prepare-root X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~21^2~16 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=3696e1cfdd1f0109c7cd9e157763ecef23ae7adc;p=ostree.git build: Use ostree_prepare_root_CPPFLAGS for ostree-prepare-root Swap from AM_CPPFLAGS to ostree_prepare_root_CPPFLAGS when compiling ostree-prepare-root statically. This fixes a problem when you have systemd and libmount, but only ostree_prepare_root_CPPFLAGS includes -DHAVE_SYSTEMD_AND_LIBMOUNT=1. Signed-off-by: Alex Kiernan Closes: #1670 Approved by: jlebon --- diff --git a/Makefile-switchroot.am b/Makefile-switchroot.am index 8a8ec570..4423fdcd 100644 --- a/Makefile-switchroot.am +++ b/Makefile-switchroot.am @@ -45,7 +45,7 @@ if BUILDOPT_USE_STATIC_COMPILER ostree_boot_SCRIPTS = ostree-prepare-root ostree-prepare-root : $(ostree_prepare_root_SOURCES) - $(STATIC_COMPILER) -o $@ -static $(top_srcdir)/src/switchroot/ostree-prepare-root.c $(AM_CPPFLAGS) $(AM_CFLAGS) $(DEFAULT_INCLUDES) + $(STATIC_COMPILER) -o $@ -static $(top_srcdir)/src/switchroot/ostree-prepare-root.c $(ostree_prepare_root_CPPFLAGS) $(AM_CFLAGS) $(DEFAULT_INCLUDES) else ostree_boot_PROGRAMS += ostree-prepare-root ostree_prepare_root_CFLAGS = $(AM_CFLAGS) -Isrc/switchroot